package com.easyCms.wechat.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.easyCms.wechat.entity.WechatUser;

import java.util.List;

public interface WechatUserDAO
		extends PagingAndSortingRepository<WechatUser, Long>, JpaSpecificationExecutor<WechatUser> {

	WechatUser findByOpenIdAndState(String openId, int stateValid);

	WechatUser findByIdAndState(Long id, int stateValid);

	List<WechatUser> findByClassId(String classId);


}
